import { createApp } from 'vue'
import App from '@/App.vue'
// 引入全局样式
import '@/style/index.scss'
// 导入element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// @ts-ignore
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import 'virtual:svg-icons-register'
import pinia from './store'
import globalComponent from '@/components/index'
// 引入路由
import router from './router'

const app = createApp(App)
app.use(ElementPlus, {
  locale: zhCn,
})
app.use(globalComponent)
// 注册路由
app.use(router)
app.use(pinia)
app.mount('#app')
